<?php defined('SYSPATH') or die('No direct script access.');

class Form extends Kohana_Form {
	
	public static function post($key, $default = NULL)
	{
		$key = str_replace(array('[', ']'), array('[\'', '\']'), $key);
		$key = explode('[', $key);
		$key[0] = '[\''.$key[0].'\']';
		$key = implode('[', $key);
		$key = '$_POST'.$key;
		
		eval('$key = @'.$key.';');
		
		return ( ! empty($key)) ? $key : $default;
	}
	
}
